#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

class run:
    def __init__(self, name, size, heiht):
        self.name = name
        self.size = size
        self.heiht = heiht

    def weight(self):
        print("{0} 喜欢举重 体重{1} 身高{2}".format(self.name, self.size, self.heiht))


class Poo(run):
    def __init__(self, name, size, heiht, level):
        run.__init__(self, name, size, heiht)
        self.level = level

    def running(self):
        print("{}喜欢跑步".format(self.name))

    def fi(self, obj):
        obj.figname = self.name


class Fight(run):
    def __init__(self, name, size, heiht):
        run.__init__(self, name, size, heiht)


p1 = Poo("xiong", 180, 180, 10)
print(p1.__dict__)  # {'name': 'xiong', 'size': 180, 'heiht': 180, 'level': 10}
p1.running()
p1.weight()

p2 = Poo("小白", 180, 180, 10)
p1.fi(p2)
print(p2.figname)

f1 = Fight("小黑", 160, 180)
